package app.dev.ems.web.wicket.page.user.home;

import java.lang.reflect.InvocationTargetException;

import org.apache.wicket.markup.html.form.Form;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import app.dev.ems.web.element.NavigationStatus;
import app.dev.ems.web.element.PageTitles;
import app.dev.ems.web.element.page.HomePageElement;
import app.dev.ems.web.wicket.page.user.BaseUserPage;
import app.dev.ems.web.wicket.panel.menu.vertical.home.HomeVerticalMenuPanel;

public class HomePage extends BaseUserPage {

	private static final long serialVersionUID = -4972133338287347853L;

	Logger logger = LoggerFactory.getLogger(getClass());

	public HomePage() throws SecurityException, IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {
		super(NavigationStatus.HOME, NavigationStatus.HOME, HomeVerticalMenuPanel.class);		
		add(new HomeForm(HomePageElement.HOME_FORM.getElement()));		
	}

	private class HomeForm extends Form<Void> {		

		private static final long serialVersionUID = -124303645086416014L;

		public HomeForm(String id) {
			super(id);						
		}		
	}

	public String getTitle() {
		return PageTitles.HOME_PAGE.getTitle();
	}
}
